#pragma once

#include "TCPStream.h"
#include <string>
#include <Windows.h>
#include <WinSock.h>
using std::string;

class TCPClient
{
public:
	TCPClient(void);
	~TCPClient(void);

	bool Connect(string ip, int port);
	TCPStream GetStream();
	void Close();
private:
	int _clientSock;
	sockaddr_in _serverAddr;
	TCPStream _stream;

	void initSocket();
};
